Students' ways of thinking about two-variable functions and rate of change in space