Need Help Creating a Basic Nested Plugin functions

Need Help Creating a Basic Nested Plugin functions

I creating a jquery Plugin like this:

(function($){
$.fn.gthnx = function(options){
var settings = $.extend(true,{
g1: null,
g2: null,
g3: null,
g4: {
                             j1: null,
                             j2: null,
                         },
},options);
return this.each(function(){
// I dont know how to start here for the nested functions I know how to use g1,g2,g3 but g4 don't where to start? can anyone help me.
});
};
}(jQuery));

Thanks, much appreciated if you could help