hw2: finished