making classes and constructors public to get applets to work