adding Program2 for networks class