changing to double and adding a testing_results function