M-type star