Refactored Question39.