functions to perform basic calculations are added