made a cpp file for class delegate