code for varlist and let

added code for varlist and let
Merge branch 'return_graph'