refactor katas