polish the marshaling-unmarshaling demo