adding applet sample