Exercise 10.6. Added wrapping for text that is too long