useful ruby examples