fix example writing own planOp