objecttiveC example code with unit tests