Coding a Sequence