An exercise in learning to work with bitstreams.