Attitudes and habits as predictors of human behavior