Added comments for the code