implemented page class