Declarations of class string prepended with std:: to satisfy g++.
cmath is preferred to math.h