modified prob_2_test.py