completed matrix assignment