coding dojo 24 mars, refactoring try