Add serialization and unserialization to Page