Solution of #61.