Added new constructors with page and page class arguments.