Update technically-code

added average function