Comp 473, Assignment 2 Code