I agree with angstrem. And, imho, some such "recipe" (algorithm) is the place to start rather than code.