please fix up the grammar errors in the following text:
Each factor has its own way of contributing to the society as a whole and the elderly will benefit directly or indirectly from the development as well.
Each factor has its own way of contributing to society as a whole, and the elderly will benefit directly or indirectly from the developments as well.