You should prefer to declare these variables here, rather than at the top of the function so it's easier to see what types they are