When you write a sc will ressolve this value when you evaluate the code block, but if you write {a} sc will only ressolve the variable when the function is evaluate.
Note the lack of curly braces in the pattern example and their presence in the task.
However, you can’t simply have a function in a pattern, instead you need to wrap the variable in a special pattern… In this case Pfunc({a})should work.