Cosmic planets and stars