added foreach exercise