Adding object class which getting vertexarray and fragment