Homework 2 for CSC 207