scodec coding exercise