Implement CattleProgram using CattleBuffer.