added example ruby code