started assignment 1
implemented 3 of 4 assignment1 functions