Philip Tan - Problem Set #9
Source code