completing IO chapter with bytestrings