Class-M planet