Added constructor to renamed JFrame and made a class with main function to create frame