Add average on input values : NEED TEST