adding hw3 part 2