made foreach example in to 2 examples