Intermediate challenge 140 solution.