Add data method to model