instruct(){
    var text;
    if(this.on){
       text = 'Turn '+this.name+' to off';
    }
    else text = 'Turn '+this.name+' to on';
    return [this.name,text];
  }
//return the name and the state
return the name and the state
return the name and the state
instruct(){
    var text;
    if(this.on){
       text = 'Turn '+this.name+' to off';
    }
    else text = 'Turn '+this.name+' to on';
    return [this.name,text];
  }
instruct ( ) { var text ; if ( this . on ) { text = 'Turn ' + this . name + ' to off' ; } else text = 'Turn ' + this . name + ' to on' ; return [ this . name , text ] ; }
return the name and the state
return the name and the state