changing tests.py according to changes in lib.py and replaced A.__str__() with str(A)
providing default value to components parameter of __init__()
replaced size() with __len__ built-in changed self.__components = components to self.__components = list(components) replacing for loops with list comprehension allowing -ve indexing in component() and changeComponent()