Using Variables to Access an Index in an Array