Final implementation of kata nine