COSC 310 Assignment 2