I\'m trying to think of a (better) way to design the following system in JS.
Say I have a Car with Engine, Doors, Lights
Car
Engine
Doors
Lights