Understanding Customers’ Behaviors and Gaining Their Loyalty