ruby examples from class