To match what we'd said, this needs:

```
f.widget = w
return f
```