Task 2

First half of task 2