Adding code for whitebox Iterator Pattern