Understanding structures and electronic/spintronic properties of single molecules, nanowires, nanotubes, and nanoribbons towards the design of nanodevices.