io and seralize example