Updated Degree.php to fit new template