Rewrote the expression and included the coding for the answer as well as the metrics that appear after the anwer.