Added prototype of func sum