Thanks a lot! I think i understand the function pointer pretty well now
and the casting is a bit confusing