created planets array, used different functions on it