create average method and expression method