Computer Programming for Motion Analysis