public <T extends AstronomicalObject> String stringObjectsOfType(Class<T> type) {
        List<T> obj = getObjectsOfType(type);
        String returnedString = "";

        for (T t : obj) {
            returnedString += t.deepToString();
        }
        return returnedString;
    }