main in right class