Error: [8] Undefined variable: foo