Adding my own solution.
Merge pull request #2 from jgardella/master

Adding jgardella's solution.