This is a useful example of how you can augment a Class to have a particular method but not by using strict inheritance or by duplicating the relevant code for each Class you have. I came across this technique (known as “Mixin Classes”) while reading the book “Pro JavaScript Design Patterns”.