Merged Ifeanyi's Solution.

I merged your solution for you, @ikalu .  You should send a pull request next time as I won't be able to do this every time your solution is done.  (And it's a bit of work for me to find out if you're ready to submit. :P )