JS2 - OOP homework