First example working in both optimized and non optimized mode