Defined function save with name and arity in context