source code for Lake Problem (see Carpenter et al 1999)