added solutions for problems 37-39