fixed hw1_2.rb