Added solution code for Problem 5