higher order programming example
example of polymorphism in C