update pointers lecture and example code