Text this: The principles of designing an expert system in teaching mathematics