This is the first pass at coding in Xcode and in Ruby