fix bug.
add sum example and modify display function.