average function example. There are any references about average function example in here. you can look below.