Here is the modified Psychologist code example that I used to illustrate finding leaks and using the static analysis tool in Xcode.