example of refactoring to design pattern null object