stating to use a Buffer class