Attempted more Objective-c style programming