added lab2.rb file