Adding foreach