refactor kata 1