I know similar questions have been asked before but I wanted to confirm my solution and look for best practices.
Let\'s say I have code like below where I would like my f