A computer model of the heart