Added degree class option