refine answers of exercise22,23