refactored locks challenge