create cii function and implement examples in test/window
Merge branch 'iss22'