in Uninformed Vol1 2005.May by Nikos Drakos, Computer Based Learning Unit, University of Leeds. + Ross Moore, Mathematics Department, Macquarie University, Sydney.
these are samples, not complete applications. The code (and coding style) is not meant to be industrial strength; it's not even well-designed. The sole purpose of the samples is illustrating a point, not teaching proper coding style.