add text justification solution, need to refactory.