added .cpp file for testing code