finixhed lamp controller and class methods on lamp and switch