Changes main class