added .cpp file for GUI interface