first version with pages