WIP: refactored let, working on adding function definitions