Issue:Solving the Problem of appointments using index matrices