upgraded examples. Now using subtemplates