Added functionality to associate each professor with a department.