To prevent the threat of Cardiovascular Disease (CVD) related deaths, cardiac rehabilitation centers can play a major role. However, having the CVD risked patient motivated towards the strenuous exercise routine is a challenge. Therefore, in this paper, we have implemented a software system that dynamically changes the music tempo for keeping the CVD risked patient on the exercise routines. The software system utilized the subtle relationship between heart rate and music tempo established by the existing body of research. Moreover, the software calculated the time elapsed in the expected HR and outside the expected HR, generating a scoring factor. These scoring factors identifies the best performers within a cardiac rehabilitation center. In the next phase, we introduce a hierarchical peer to peer model, where the country level main cardiac rehabilitation center monitors the best performers in the whole country in an efficient manner, for the purpose of distributed virtual heart rate competition. The proposed model substantially reduces network traffic in regular monitoring and balances the load of different cardiac rehabilitation servers.