This is my part 3 of the assignment