Assignment 1 for cmput 301