improve static_pages
finish chapter 5