frame and main class creation