Implement function create and evaluation.

Result is still not returned properly in function evaluation.