while medea suffered with the animals , jack , hector , electra , cassandra , and ariadne lent a helping hand wherever they could , assisting their parents , who either tried to extinguish the fire and get the dwellers out of the burning houses , or attended to the injured townspeople .