Mel,

Thanks for the very detailed explanation, it has helped as I wasn't sure how the $xx was related to the binary (ie 07 in binary being 111) and what exactly the >> related to.

I'll try your suggestion tonight - Thanks for the lesson, and I promise to do my homework from now on