build class name dictionary