Finished Correction for Problem 5

Finished the Rewrite for Problem 5.