# Refactored code