Barnes & Noble posts quarterly profit, plans new Nook device