Atomic chain supported by 2 electrodes