Working other functions in hw7.rb