formatting the code
remove error step in deconstructor
change the return type of calculate function into double
fix strToDouble function