alwaysreadytotrain.com refactored code