Adding my solution to the page.