Even simpler, use `x` and `y` instead of `fx` and `fy`, and then move this to first line of the function.