java gui added. this works.