SImple buffer implementation