updated networking example

decided to simplify it