creating main class