Nanowires and nanorings at the atomic level.