Changed variable names

Changed MM to M to match what we used in class