Lab and exercise for Ruby ex1.rb to ex3.rb