serialize() example