added assignment2.rb and 3