Assignment 6: Core Date enhanced for ViewedPhotos