hw2, the mini assignment, finished