missing import for operator class
added callback function for analysing results