fixed notation of optional var in examples