Solution of #37.