Wrote initial mathbot code.