bltgent's submission for Programming Assignment 2