Buffer class work