Broke lightswitch out into separate classes.