Finished the generic math classes