Coursework 6
Problem 4 is for tough students.