created a file for averagerate function codes
Merge pull request #19 from britth/averagerate

created a file for averagerate function codes