implemented function-scopes, using the symtab_enter_scope() and symtab_leave_scope() functions