Refactored abstract class names and got rid of the lamda expression in Planet.