wiring the object to act as an iterator
added the invalid resource exception
wired the contacts class
refactoring away the common bits