About #13 : rename dist_function to cost_function
always pep8