removed main method, added gui class