Class main