Class Implementation

Most of the program uses the class now instead of standalone variables
and lists.