How does stellar temperature affect star classification?