FP101x Introduction to Functional Programming, Homework 10