added a main class