add functions list, add inital logic for 'if' and 'loop'