completed assignment

I added the conditional statements with comments to assignment 5.1.