Started working on second loop. Added some comments.

Signed-off-by: Vasu Bhardwaj <voodoorapter014@gmail.com>