Nanoelectronics, Nanophotonics and Nanomagnetics