Finished cs242 assignment