Implemented classes only using Python lists.
Re-implemented code with Python lists.