Shuttling of electrons and Cooper pairs