Refactored LogicData Component