Add function definitions with let .... endlet