Started sort function
Continued work on calculate_average