first attempt ruby3 ex7