made iterator a nested class