Some ruby code and exercise