Exercise 5: ex5.rb