Hamming: Updated example and changed exercise to use a function
Leap: Updated exercise to be a function rather than a class