added jdialog, geld class and implemented functions