Mixin for adding methods to classes. Duck typing. Javascript.