try one sample on python oo design
add java version and rewrtie format