Help with gradient

Thanks. This concept of mutating matrices is foreign to me so your explanation was very helpful.