Completed calculator.
Completed validator.