A novel mathematical model to treat heart attacks