add lock example
add lock example