Part 2 of the homework