How you are treated makes a difference in who you are — that's true of dogs as well as people, including prison inmates.