finished compartmentalizing code according to Jeff Potter's best practices
yolo