first try at ruby-1 ex7