Overridden the constructor to initalize the buffer