What: refactor console program