Factors contributing to the development of nationalism