M1 Code Walkthrough