finished encoder, decoder, orderclass