Changed Class to Class<?> to remove warning