The subclass example is more idiomatic than a rote translation.
Redundant.
Array instead of Vector
Highlight more keywords.
Rerender index.