implement ex5
add lx