first commit
add code logic
complete and add testcase
Merge pull request #1 from ielgnaw/master

ecomfe/edp#169