Finish task 1 and task 2 of Exercise 3