AVRO example for binary serialization