Exercise of Programming Ruby