completed exercise2.rb question4