Rename a method as getMagnitude() and add the getPhase() method.