Implemented Task 1