Assignment 3 for COSC 310