Implementation of the simple calculator which operates with integers and common fractions