starting buffer wrapping class