assignment1, finished 1.A