completed calculation code to get average race times and paces per race. Added code in a seperate file, this allows the code not to repeat itself every time