extra credit to print addresses
rewrite using print functions
convert for loops to while loops