first attempt at ruby-1 ex8