prioity queue and patient classes