Exercise 3 solution
Exercise 4 setup
Exercise 4 solution.