added class2.rb changes