cs242 Assignment2