Completed the Institution_reverse function