Replaced variable names by index, tried to add summation, now trying to
add "print".