Small but tricky piece of code in JavaScript which allows you to define classes with properties and methods, supports inheritance and instanceof operator.