-change the mode function from average.py to solve test_average&test_database
-ADD test case inside test_average.py to verify MODE