For Homework with GCD, Reverse, and table functions