Added constructor to Buffer