append_block_and_position_at_end function added to combine these
two operations.
Added [exec] method to compute and print values from statements
which are not functions. These statement are wrapped in anonymous
functions and then called.