Lab 3 code

Pass 1 and final of the loop code for SP600