Refactored code so that either negative lunch hours or negative work hours will produce an error.