correction to variable on line 15, edited comments, and eliminated spacing at bottom