reordered temlate file - examples are now in order of increasing complexity