Study all three versions of the program
You should study all three versions of the program.
Make certain that you can explain how and why each program achieves the same result to a fellow student.