Students learnt how to restart a heart as part of their wider curriculum.