Stars and their life cycles