Life cycles of stars and HR diagrams