Difficulties faced by poor populations such as starvation or having no access to advanced educational resources touch young people’s hearts and drive them to use their talents to help those in need.
I read these Punctuation rules, and wondering whether I should change the sentence into this
Difficulties faced by poor populations, such as starvation or having no access to advanced educational resources, touch young people’s hearts and drive them to use their talents to help those in need.
If I should, is it because of rule 7b or rule 5, or both?