first attempt at ruby-2 ex5