My solution to JS OOP exam in SoftUni