james | refactoring into methods and properties