Electronic device for processing data