hw3 - part2 done