Lan and exercise for Ruby ex4.rb to ex6.rb