changed list<> to lists from program4