added byte stream class