class StudyPlan def initialize(done) @done = done end def completed @done end end puts StudyPlan.new(3).completed