Perform all operation in one for loop

Operations defined in arrays
Declare unchanging variables final