homework4.rb