Added for_each_in solution