Quiz 11: Completed implementation