Update ch5.md

Just a suggestion. You should comment output as close to the actual code that produces it. It's very helpful for readers IMO.