first attempt at ruby-1 ex4