completed hw2.4