How did ancient Greece and ancient Rome influenced?