Final alert added with the solution and comments.