added router and layouts. end of chapter 4
added router and layouts. end of chapter 4