sync up application for the end of chapter 5