Implement Pages class