clean code version using Vertex Array Objects