Class M planet