Progress Report 3 code

Here's the code for progress report three. The first test case is the test program with NOPs, the second test case is the test program without NOPs.