Classical OOP in Javascript