Improved VBO code, for re-usablity of the object