code rework, toString method added to condition cpp