Prerequisites for the concept of shop profit: Logic and memory