added example implementation of networking stuff