Solution of #26.