Added first implementation of task 1