Updated to use Swift latest features introduced with beta 3.

![Switf features](https://9to5mac.files.wordpress.com/2014/07/screen-shot-2014-07-07-at-19-26-39.png)