Modified existing code so that the ar repo returned an Array of Team entities objects.