An OOP approach using a tutorial from codequizzes