creating new page class