Added Cube class, fixed vertexAtt bug