foreach exercises