Serialization work for issue #20. Need help