using Ruby 1.9+ syntax. Improved spacing and readability of code. Removed unneeded brackets.