An inverted calculator for educational purposes