problems 39, 40