hw2 part1 check