Fix to syntax error in Question 8 and solution to Question 10