Template Loading and inheritance