Fixed example code that didn't make good sense.