Have you created and included to your project "serial.h" and "serial.cpp" files?