Made all templates inherit from base