Created BaseApplet class which should be used a a parent class for every applet.