M type main sequence star