Practiced is-a and has-a class relationships in Python