Comparative Study of Comets and Planets