my ruby code learning the language