Take an example for using gallery.