Extended irreversible thermodynamics