the prototype pattern your upgraded unit-generation code would now look like thisrts_multi_unit py class knight(object)def __init__(selflevel)self unit_type "knightif level = self life self speed self attack_power self attack_range self weapon "short swordelif level = self life self speed self attack_power self attack_range self weapon "long sworddef __str__(self)return "type{ }\ "life{ }\ "speed{ }\ "attack power{ }\ "attack range{ }\ "weapon{ }formatself unit_typeself lifeself speedself attack_powerself attack_rangeself weapon class archer(object)def __init__(selflevel)self unit_type "archer