fixed syntactic error in example code