fixing the example code

figure out difference between unsigned and signed int's
stuff