CS193p Flickr task written in Swift