Kata for a legacy code hands-on session. The objective is to write tests and refactor the given legacy code.