driver.c - declare variables at top of function