foreach with keys exercise