Implemented  Door and Switches