add demo code for case match