Added serialize() prototypes to the other classes.