My solution for the September coding dojo