Finished Q#2 from part 3