Cosc 242 assignment 2