Polishing problem 8-4
Had to add a template type. Tests didn't work otherwise on code expert.
IMPORTANT: In the latex a TODO said to change the Logger Class to a lambda function. I don't think that's an improvement since with the class it's way better to read and makes semantically more sense. So I left it like it was.