Got index print statement to work