Write a class Lights that sets the variable switch (integer) to one if the lights are on and zero if the lights are off.