class Person
attr_accessor :name,:age
def initialize(name,age)
@name=name
@age=age
end
end
class People < Array
end
people=People.new
people.push(Person.new("John",27))
people.push(Person.new("Mary",25))
p people.first.name
p people.length
p people.find {|person| person.age < 26}
# Question : any solution that i can use people object like people[0],people[1],.... ?