version after the tutor told us how to solve the exercise