2nd ruby code sample