sample network code