struct deserialization example works