So, I was able to make it with your help but I ran into another problem.
I converted the classic: function() to an arrow function and now it’s not working. I checked and I did the conversion correctly but the problem exists.
If you had a function expression, which is what an arrow function is but declared using var you would still not be able to use the function. The variable holding the function would contain the value undefined as only declarations are hoisted, but it wouldn’t throw an error.