Adding klass.js to clarify OOP. Changing implementation to fit klass.js