Exercise 4: ex4.rb