ByteString version of exercise 1-2