first attempt at ruby4 ex1