completed variable scope exercises