Adding data model with attributes