first solution to Ruby-0 challenge 4