added the method to get an array of classes