Better solution using Enumerable