Updated my comments for better understanding