Implement Buffer

Implement Buffer.