added average of two numbers and sum of last 3 inputs