- refactor for ruby style guide