HW2/Task 1
Implemented Homework 2