Solution of #32.