Rex to leave high school