Java ObjectStream example with Serialized MyObject