add chap4 & from chap5; Application state & Application service.
add chap5; added application state & application service
solved merge conflict
fixed merge conflict