MathSet: Finished code