Kata exercise from http://osherove.com/tdd-kata-1/