first try at ruby-1 ex6