ruby exercise.