solved ruby 29