homework with photogallery using router