Solution of #25.