Create class to handle buffer data