moved NSObject classes to model