Or you can just define it outside SerialCommunication in the .cpp file.