Almost finished Q11 of Exercise 6