create logic in business. refactor some class to logic.