Question regarding adding and overriding functions in existing plugin
<p>Below is my my plugin:</p>

<pre><code>(function($) {
    $.fn.myPlugin = function(options) {
        var opt = $.extend({}, $.fn.myPlugin.defaults, options);

        this.foo()
        {
            alert('test');
        }


    }
    $.fn.myPlugin.defaults = {
    };
});
</code></pre>

<p>Now I want to extend it without touching the original plugin i.e I want the full feature of existing plugin + the new features which I want. Below are the new things I need:</p>

<p><strong>First</strong>: 
Name of the new plugin "myPlugin2"</p>

<p><strong>Second</strong>:
The "foo" fuction of the exisiting plugin should be overrided in the new plugin with this:</p>

<pre><code>function foo() {
    alert('test2');
}
</code></pre>

<p><strong>Third</strong>:
I need to add one more method to my new plugin say function foo2(){} . </p>

<p>Can you help me in achieving this?</p>
