Assignment 2 for CSCI 226