hw7.rb finish but there are bugs