Added an alternate solution.