I have a showAppointments variable which is an object. I then have a loop that initially sets showAppointments[g] (with g being which specific day the appointment is created in)