In this manner, DWs eventually come to rest at one of the pinning sites.One aspect of the invention is a device that includes a track that includes magnetic material, in which the track is designed to contain magnetic regions that can be shifted along the track in response to electric current passing through thetrack.