Implementing a bytes datatype and a read function.