Added degree class and processing