added main class and background