Using the foreach sink