#6 : refactoring ruby models