Basic skeleton for iterator