The double bonds do not have to be in an aromatic ring. The rule also fits aliphatic compounds such as the butadiene compound mentioned above. Remember cases like hydrazine and hydroxyamine where n = 0.