Ruby classes with instance methods