completed the assignment problem