Change `define` to `defineClass` (`define` is still available for compatibility).