CMSC 331 Assignment 4