problem 37 done
problem 38 done
problem 39 done