The function of mythology and religion in ancient Greek society