Implement the class of analyzing the serial data