committing question 10 with final changes