code for the applet in notepad