Datalore
Stardate: 41242.4. While exploring his homeworld, the crew of the Enterprise find android parts that are identical to Data’s. When assembled, an ‘evil’ twin of Data named Lore is revived.