finished matrix product for week 6