Some Ruby exercises