added main class attribute