refactor network into multiple classes
displaying IP