Added solution for problem 13.