Fixed undeclared variable usage error in example