Refactored using let