My first solution.