added str method to Dependent class for nicer printing
added str method to DependentList class for nicer printing