<file_sep>class Patient

attr_accessor :name, :appointments


def initialize(name)
  @name =name
  @appointments = []
end

def add_appointment(appointment)
  @appointments << appointment
  appointment.patient = self
end

def doctors
  @appointments.collect{|appointment| appointment.doctor
  }
end
end
