changed d.x/d.y to d.professors/d.courses respectively