Leap: Updated exercise to be a function rather than a class