Added commentry to the code