solution ruby2 exercice 1