STAR experiment investigates the formation of the Quark Gluon Plasma via the heavy ion collisions taking place at the Relativistic Heavy Ion Collider situated at Brookhaven National Laboratory, Upton, NY. The production of charm quark occurs in the early stages of the heavy ion collisions dominantly via gluon fusion. Due to the fact that the yield of charm is affected by the conditions of the early stages of the collision, the measurement of the charm production provides a useful tool for description of the initial stage that took place. One of the most important findings of the experiments at RHIC was the discovery of the anomalous quenching of jets when passing through the hot and dense matter build in nucleus-nucleus collisions. Heavy quarks measured through non-photonic electron yields in heavy-ion reactions at RHIC, exhibit a larger suppression than expected from the theoretical considerations.n order to comprehend this puzzle and understand better the flavor dependence of the jet quenching, the separation of charm and beauty contributions as well as the measurement of their quenching is necessary.