In the early middle ages, the economic activity of western Europe was