Superconductivity in d- and f- band metals