created planet class and constructor