updating logic challenge