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

Add page_type class method