The code I wrote during the Codejom competition.