converted fvmbook/chap22/corner