added more terms to MathRoom constructor to have finer control over the problems that are generated