I did, but if I'm not wrong that's only a feature of OO-languages, and I'm using C
Sorry I didn't say it explicitly, I'm editing the original post.

So, a way of doing it without functors? Or can they be implemented anyhow in C?