Rewrote attendance.py using OOP