Add LogicControl and Main classes