created doctor class and its patients to make response ready