Solution of #77.