starting work on local variables - incomplete