This is an implementation of a code kata.