implemented MathActivity