KATA03 refactoring functions to Helper