Optical And Magnetic Properties Of Nanostructures