My solution.