adding in the finalized method for calculating the C/multiplied matrix