added selectionop parameter
Haxagonal numbers example