added demo code from lecture and started working on the GalleryActivity