finished two-way translation between Avro schemae and case classes