Teacher’s solution.