Separated into classes and andded new classes to autorrent.py.