typed up hw3 prob 37