Function.prototype.newClass = function(cls) {
	this._class = cls;
	if (this._class == null) this._class = new function() { };
	if (this._baseClass != null) this._class.prototype = this._baseClass.prototype;
	this.prototype = new this._class(this._baseClass != null ? this._baseClass.prototype : null);
	return this;
}

Function.prototype.inheritFrom = function(baseClass) {
	this._baseClass = baseClass;
	return this;
}
