Patterns of thoughts and behavior