DoubleBuffer class