problem #39