Checks departments

Gets the id of the department for the index of class