Changed to use Enumerable.Select instead of Enumerable.Range