Switch from CPP objects to Objective-C object

First step needed to have proper unit tests.