function: Add KCFunction and KCUserFunction class