Added code credit & comments