begin function implemented

used prebegin to make an array of all parameters
begin evaluates all subexpressions and return last output