Question 3.5

Code for question 3.5 by Mirai