Question 2 code and images