Assignment 2: Code with comments.

Add comments to the code.