Writing "correct" (but inefficient) method for 1.b