Instead of using glBegin glEnd, now it's using vertex buffer object.
Next is to register this vbo in the nbody simulation.