Update NetworkDiscovery.java

added sample network discovery