Assignment 2 - Sisi Cheng/Jean Sung

Hm, interesting solution. I think using a higher order function may have been cleaner in this case, but I like the different approach.