M-class planet