The Mathematics class is refactored and documented