singleton jee and singleton gof pattern example initial version