add Buffer class