Added part 2 of the homework