Adding the class which is used to debug and find the errors in the code
Working versions of using buffers in OpenGL