Update ch5.md

Just a suggestion. In your code examples you should considering commenting output as close to the code that initiates it. Not unlike when you are using an interpreter and a return value is given. It's very helpful for readers IMO.