Variable "$var" will not stay shared at line 7. abc abc