modify a bit
add soln exer 2-6