add hw3 part1 solution