Lesson 12: Moment calculation vector formulation