pass by ref/value and var scope exercises