Inside a mechanical calculator