this is some useful code include pattern/lib usage/testing covering c/cpp/ruby