New class for handling TCP connections and serialization