Added _repr_ override to basic_class