Fix grammaticality in this sentence: When we learn foreign languages, we can learn various things about a country we have not gone to, such as the ways of thinking of the people, the culture, and the society.
When we learn foreign languages, we can learn various things of a country we have not gone to, such as ways of thinking of the people, the culture, and the society.