Provided are compounds of formula (I) and/or salts thereof, of the class of substituted pyridines and pyrimidines, useful for inducing cardiomyogenesis, a process for producing cardiomyocyte-like cells from mammalian cells by culturing mammalian cells in the presence of the compound of formula (I), the pharmaceutical use of compounds of formula (I) for producing cardiomyocyte-like cells from omnipotent, pluripotent, or lineage committed mammalian cells, and the use of thus produced cardiomyocyte-like cells for treating disorders associated with impaired function of the heart.