added a main class and removed temp main