Adding my solution.