Made a new class for logic.