Hamcresh examples code