Scientific basis of habit formation