Fixed the getDataTypeFromClasses method