solve NetworkPractice1