added dc class and main