added hw3 part 3