Version 4.5 -- includes code optimisation using the "Scope" package in reduce