Model of Antikythera mechanism