Completed first half of exercise 3 from week 5