Better version using forEach()