Template containing object of same type.