nut
nut
tidied up the code, added comments too