How did people barter to get the things they needed?