added example for Curve3D
new schema for defining functions with parameters