Implemented the Bridge, Switch and SwitchState classes