Ruby examples from class