Made sure it works

Made sure it compiles on Xcode 4.5.2 and runs on iOS 6.0 simulator.