What forms from the left over materials from the formation of a star?