CPSC 310 Assignment 2