solution ruby-0-ex5