my answer to code kata