Updated main.swift.(for Swift 1.1/ add example)