prog 2.2
adding an additional NSLog