extracted vertex array object handling to separate class