Code ready to be refactored!