self __flipdowncommand flipdowncmd def flipup(self)self __flipupcommand execute(def flipdown(self)self __flipdowncommand execute(class light"""the receiver class""def turnon(self)print "the light is ondef turnoff(self)print "the light is offclass command"""the command abstract class""def __init__(self)pass #make changes def execute(self)#override pass class flipupcommand(command)"""the command class for turning on the light""def __init__(self,light)self __light light def execute(self)self __light turnon(class flipdowncommand(command)"""the command class for turning off the light""def __init__(self,light)command __init__(selfself __light light def execute(self)self __light turnoff(class lightswitch""the client class"" www testingperspective com