Proper attribution for the flatten() solution