they were city states federated among themselves