fixed Problem 2(a): changed n_M to n_1