a simple network class