Added a Photo class file and modified the delegate class file