completed hw#4!