updated size function to use iterator
made necessary changes to these files to compile using make