Here is my function

Yes, instead of working, I procrastinate on GitHub.