added return statement and procedure definition
parsed top-level statements