added degree attr method, changed property names to reduce confusion