implemented Function.prototype.call method