Fixed error in example code