My initial solution to programming assignment #2.