Add starting implementations of encoder and decoder.