Add page_type class method