trying to serialize example from Writable javadoc