created main class with constructor and JFrame