Only classes with name is returned