completed hw2.2