Refactoring main example passed method.