the Antikythera Mechanism was an ancient greek mechanical computer constructed of gears of unparalleled accuracy for the time build some 100 years before christ it was discovered in 1901 but only recently have it's secrets been unlocked thanks to advances in xray imaging techniques. It was designed to predict eclipses given a certain date.
This shows how the mechanism works in lego