Repeat-buying; theory and applications