The examples for a beginner class in ruby