How is a habit structured?