did part of the lib.py file i actually understand

still no functionality