Added Toggle operator and Implemented project1 logic