Taking notes in class is a bad habit
The teacher in the class told me to avoid keeping a bad habit
It is a good habit to take notes to promote one's study.
Many people keep taking notes in class as their habit