paramfunc.h basic templates + example of using complicated functions