creates listen class to create buffer