Adding comments to make sure I understand what each line of code does.