second attempt at ruby3 ex1