Added Toggle operator and Implemented project2 logic