Add page_type class method
Merge pull request #4 from tf/page-type

Add page_type class method