Added program to iterate entities