Program 3.3 from Objc