tdd-training-homework02 - refactor rest