Implement newFunc
Split mimic.go into extract.go and func.go