Functions to create and call functions and evaluate expressions