changed 4A slides to make cat a local variable