fix grammar problems in this sentence
After telephone was invented in the late 1800s, people were thinking about ways to improve such communication technology to extend the range of social network.
After the telephone was invented in the late 1800s, people were thinking about ways to improve communication technology to extend the range of social networks.