Complete code for NMA Chapter 27 - changed commend_app.js