Solution of #44.