Update chapter-5-flattening.js