add vector sumation function to planet class