Homework for JS OOP patterns